package org.web.ssm.service;

import org.springframework.stereotype.Service;
import org.web.ssm.model.Product;
import org.web.ssm.model.queryVo.BaseQuery;

/**
 * Created by hubin on 2016/6/15.
 */
@Service
public interface IProductService {

    /**
     * 获取 产品列表
     * @throws Exception
     */
    BaseQuery<Product> getProductList(Integer managerId, int pageSize, int pageCurrent, String keyword) throws Exception;

    /**
     * 添加产品
     *
     * @param
     * @throws Exception
     */
    void addProduct(Product product) throws Exception;

    /**
     * 修改
     *
     * @param product
     * @throws Exception
     */
    void updateProduct(Product product) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @throws Exception
     */
    void delProduct(int id) throws Exception;

    /**
     * 下架
     *
     * @param id
     * @throws Exception
     */
    void tookProduct(int id) throws Exception;

}
